﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CommentPostMVC.Models;

namespace CommentPostMVC.Controllers
{
    public class CommentController : Controller
    {
        //
        // GET: /Comment/
       
        public ActionResult Index()
        {
            return View();
        }


        [HttpGet]
        public ViewResult BlogPostComments()
        {
            return View();
        }

        [HttpPost]
        public ViewResult BlogPostComments(Comment comment)
        {
            return ModelState.IsValid ? View("Comment", comment) : View();
        }
    }
}
